import { Routes } from '@angular/router';
import { LayoutComponent } from './layout/layout.component';
import { SuperUploadComponent } from './components/upload/upload.component';
import { SuperUploadDemoComponent } from './demos/super-upload-demo/super-upload-demo.component';
import { SelectDemosComponent } from './demos/select-demos/select-demos.component';
import { DialogExampleComponent } from './components/dialog-example/dialog-example.component';

export const routes: Routes = [
  {
    path: '',
    component: LayoutComponent,
  },
  {
    path: 'upload',
    component: SuperUploadComponent,
  },
  {
    path: 'demos/upload',
    component: SuperUploadDemoComponent,
    title: '上传组件演示',
  },
  {
    path: 'demos/select',
    component: SelectDemosComponent,
    title: '下拉框组件演示',
  },
  {
    path: 'demos/dialog',
    component: DialogExampleComponent,
    title: '弹窗服务演示',
  },
];
